package com.dh.homework;

public class GirlFriend {


    private String name;
    private float height;
    private float weight;


    public GirlFriend(String name, float height, float weight) {
        this.name = name;
        this.height = height;
        this.weight = weight;
    }

    public void wash() {
        System.out.println("洗衣服");
    }

    public void cook() {
        System.out.println("做饭");
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getHeight() {
        return height;
    }

    public void setHeight(float height) {
        this.height = height;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public String introduce(){
        return "我女朋友叫" + name + "，身高" + height + "厘米" + "，体重" + weight + "斤";
    }
    @Override
    public String toString() {
        return "我女朋友叫" + name + "，身高" + height + "厘米" + "，体重" + weight + "斤";
    }
}
